package com.asw.springboot.common.listener;

import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;

/**
 * Created by hxq on 2017/5/18.
 */
public class MyApplicationReadyEventListener implements ApplicationListener<ApplicationReadyEvent> {
    @Override
    public void onApplicationEvent(ApplicationReadyEvent applicationReadyEvent) {
        System.out.println("在刷新后被发送，并且任何相关的回调都已经被处理，表明该应用程序已经准备好处理服务请求");
    }
}
